package com.sen.patterns.structural.adapter.ex2;

import junit.framework.TestCase;

public class Test extends TestCase {
	public void testAdapter() {
		IRoundPeg roundPeg = new RoundPeg();
		ISquarePeg squarePeg = new SquarePeg();
		PegAdapter adapter = new PegAdapter(roundPeg, squarePeg);
		adapter.insert("111");
		adapter.insertIntoHole("222");
	}
}
